import java.util.GregorianCalendar;
import java.util.LinkedList;


public class Draw {

	protected LinkedList<MainBall> mains;
	protected LinkedList<LuckyBall> luckys;
	protected GregorianCalendar date;
	
	public Draw(int y, int m, int d,
			int m1, int m2, int m3, int m4, int m5,
			int l1, int l2)
	{
		date = new GregorianCalendar(y, m-1, d);
		mains = new LinkedList<MainBall>();
		mains.add(new MainBall(m1));
		mains.add(new MainBall(m2));
		mains.add(new MainBall(m3));
		mains.add(new MainBall(m4));
		mains.add(new MainBall(m5));
		
		luckys = new LinkedList<LuckyBall>();
		luckys.add(new LuckyBall(l1));
		luckys.add(new LuckyBall(l2));
	}
	
	public GregorianCalendar getDate()
	{
		return date;
	}
	
	public LinkedList<MainBall> getMains()
	{
		return mains;
	}
	
	public LinkedList<LuckyBall> getLuckys()
	{
		return luckys;
	}
	
	public String getDateString()
	{
		String result = "";
		result += date.get(GregorianCalendar.DAY_OF_MONTH) + "/";
		result += date.get(GregorianCalendar.MONTH)+1 + "/";
		result += date.get(GregorianCalendar.YEAR);
		return result;
	}
}
